

module components {
	export class DdzPoker extends eui.Component {
		private chess: Poker_DDZ = null;
		public constructor() {
			super();
			this.skinName = "resource/ui/components/DdzPokerSkin.exml";
		}
		public poker: eui.Image;
		public title: eui.Image;
		public init(poker: Poker_DDZ, showDizhu: boolean = false) {
			this.chess = poker;
			this.visible = true
			this.poker.source = Global.getPokerByObjectForDDZ(this.chess);
			if (showDizhu){
				this.title.source = "DDZ_source_7"
			}else{
				this.title.source = ""
			}
		}
		public destroy() {
			this.visible = false;
			this.poker.source = "";
			this.title.source = "";
		}
	}
}